package Message.Game
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SDrugCanUseDtMsg extends Object implements IMessageBase
    {
        public var canUseContinueLifeDrugDt:Date;
        public var canUseContinueManaDrugDt:Date;
        public var canUseMoreExpDrugDt:Date;
        public var canUseExpDrugDt:Date;
        public var canUseImmediatelyLifeDrugDt:Date;
        public var canUseImmediatelyManaDrugDt:Date;
        public var canUseLifeBagDrugDt:Date;
        public var canUseManaBagDrugDt:Date;
        public var canUseBufferDrugDt:Date;
        public var canUsePetContinueLifeDrugDt:Date;
        public var canUsePetContinueManaDrugDt:Date;
        public var canUsePetEnergyDrugDt:Date;
        public var canUsePetLifeSpanDrugDt:Date;
        public const _type:int = 12038;
        public static var _regist:SDrugCanUseDtMsg = new SDrugCanUseDtMsg(true);

        public function SDrugCanUseDtMsg(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            
        }

        public function getType() : int
        {
            return this._type;
        }

        public function clone() : IMessageBase
        {
            return new SDrugCanUseDtMsg();
        }

        public function __write(param1:SerializeStream) : void
        {
            param1.writeDate(this.canUseContinueLifeDrugDt);
            param1.writeDate(this.canUseContinueManaDrugDt);
            param1.writeDate(this.canUseMoreExpDrugDt);
            param1.writeDate(this.canUseExpDrugDt);
            param1.writeDate(this.canUseImmediatelyLifeDrugDt);
            param1.writeDate(this.canUseImmediatelyManaDrugDt);
            param1.writeDate(this.canUseLifeBagDrugDt);
            param1.writeDate(this.canUseManaBagDrugDt);
            param1.writeDate(this.canUseBufferDrugDt);
            param1.writeDate(this.canUsePetContinueLifeDrugDt);
            param1.writeDate(this.canUsePetContinueManaDrugDt);
            param1.writeDate(this.canUsePetEnergyDrugDt);
            param1.writeDate(this.canUsePetLifeSpanDrugDt);
            
        }

        public function __read(param1:SerializeStream) : void
        {
            this.canUseContinueLifeDrugDt = param1.readDate();
            this.canUseContinueManaDrugDt = param1.readDate();
            this.canUseMoreExpDrugDt = param1.readDate();
            this.canUseExpDrugDt = param1.readDate();
            this.canUseImmediatelyLifeDrugDt = param1.readDate();
            this.canUseImmediatelyManaDrugDt = param1.readDate();
            this.canUseLifeBagDrugDt = param1.readDate();
            this.canUseManaBagDrugDt = param1.readDate();
            this.canUseBufferDrugDt = param1.readDate();
            this.canUsePetContinueLifeDrugDt = param1.readDate();
            this.canUsePetContinueManaDrugDt = param1.readDate();
            this.canUsePetEnergyDrugDt = param1.readDate();
            this.canUsePetLifeSpanDrugDt = param1.readDate();
            
        }

    }
}
